package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.SeckillVoucher;
import com.hmdp.entity.VoucherOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 */
public interface IVoucherOrderService extends IService<VoucherOrder> {
    /**
     * 抢购优惠券
     */
    Result seckillVoucher(Long voucherId);

    //Result createVoucherOrder(Long voucherId, SeckillVoucher seckillVoucher);
    void createVoucherOrder(VoucherOrder voucherOrder);
}
